/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/19
 * ***************************************************************************/

Ext.define("sggm.view.SendEquipWindow", {
    extend: "Ext.Window",
    alias: "widget.sendEquipWindow",
    title: "发放装备",
    width: 300,
    height: 260,
    modal: true,
    layout:"form",
    labelWidth:45,
    plain:true,
    bodyStyle:"padding:5px",
    buttonAlign: "center",
    items: [{
        xtype: "fieldset",
        title: "装备类型",
        autoHeight: true,
        defaultType: "radio",
        items: [
            {boxLabel: "物理武器", name: "type", inputValue: 'weapon', checked: true},
            {boxLabel: "法师武器", name: "type", inputValue: 'magic'},
            {boxLabel: "饰品", name: "type", inputValue: 'accessory'},
            {boxLabel: "防具", name: "type", inputValue: 'armor'}
        ]
    }, {
        xtype: "numberfield",
        labelWidth: 160,
        name: "level",
        fieldLabel: "打造等级(请查询配置文件)",
        emptyText: "(1-16)级",
        maxValue: 16,
        minValue: 1,
        hideTrigger: true
    }],
    buttons: [{
        text: "发放",
        action: "sendEquip"
    }]
});